<!DOCTYPE html>
<html lang="en">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
    <meta charset="utf-8"/>
    <title>    TFC-Trotri Foundation Classes &raquo; \tfc\util\Encoder
</title>
    <meta name="author" content=""/>
    <meta name="description" content=""/>

            <link href="../css/template.css" rel="stylesheet" media="all"/>
    
            <!--[if lt IE 9]>
        
        <![endif]-->
        <script src="../js/jquery-1.7.1.min.js" type="text/javascript"></script>
        <script src="../js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script>
        <script src="../js/jquery.mousewheel.min.js" type="text/javascript"></script>
        <script src="../js/bootstrap.js" type="text/javascript"></script>
        <script src="../js/template.js" type="text/javascript"></script>
        <script src="../js/prettify/prettify.min.js" type="text/javascript"></script>
    
            <link rel="shortcut icon" href="../img/favicon.ico"/>
        <link rel="apple-touch-icon" href="../img/apple-touch-icon.png"/>
        <link rel="apple-touch-icon" sizes="72x72" href="../img/apple-touch-icon-72x72.png"/>
        <link rel="apple-touch-icon" sizes="114x114" href="../img/apple-touch-icon-114x114.png"/>
    </head>
<body>

        <div class="navbar navbar-fixed-top">
        <div class="navbar-inner">
            <div class="container">
                <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                    <span class="icon-bar"></span> <span class="icon-bar"></span>
                    <span class="icon-bar"></span> </a>
                <a class="brand" href="http://www.trotri.com/">Trotri官网</a><a class="brand" href="../index.html">TFC-Trotri Foundation Classes</a>

                <div class="nav-collapse">
                    <ul class="nav">
                        <li class="dropdown">
                            <a href="#api" class="dropdown-toggle" data-toggle="dropdown">
                                API Documentation <b class="caret"></b>
                            </a>
                            <ul class="dropdown-menu">
                                                                    <li><a>Namespaces</a></li>
                                                                        <li><a href="../namespaces/tfc.html">tfc</a></li>
                                                                                                                                </ul>
                        </li>
                        <li class="dropdown" id="charts-menu">
                            <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
                                Charts <b class="caret"></b>
                            </a>
                            <ul class="dropdown-menu">
                                <li>
                                    <a href="../graph_class.html">
                                        <i class="icon-list-alt"></i>&#160;Class hierarchy diagram
                                    </a>
                                </li>
                            </ul>
                        </li>
                        <li class="dropdown" id="reports-menu">
                            <a href="#reports" class="dropdown-toggle" data-toggle="dropdown">
                                Reports <b class="caret"></b>
                            </a>
                            <ul class="dropdown-menu">
                                <li>
                                    <a href="../errors.html">
                                         
                                    </a>
                                </li>
                                <li>
                                    <a href="../markers.html">
                                        <i class="icon-list-alt"></i>&#160;Markers
                                    </a>
                                </li>
                                <li>
                                    <a href="../deprecated.html">
                                        <i class="icon-list-alt"></i>&#160;Deprecated
                                    </a>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="go_to_top">
            <a href="#___" style="color: inherit">Back to top&#160;&#160;<i class="icon-upload icon-white"></i></a>
        </div>
    </div>
    
    <div id="___" class="container">
        <noscript>
            <div class="alert alert-warning">
                Javascript is disabled; several features are only available if Javascript is enabled.
            </div>
        </noscript>

        
            <style>
        .deprecated h2 {
            text-decoration: line-through;
        }
    </style>
    <div class="row">
        <div class="span4">
                    <div class="btn-group view pull-right" data-toggle="buttons-radio">
        <button class="btn details" title="Show descriptions and method names"><i class="icon-list"></i></button>
        <button class="btn simple" title="Show only method names"><i class="icon-align-justify"></i></button>
    </div>
    <div class="btn-group visibility" data-toggle="buttons-checkbox">
        <button class="btn public active" title="Show public elements">Public</button>
        <button class="btn protected" title="Show protected elements">Protected</button>
        <button class="btn private" title="Show private elements">Private</button>
        <button class="btn inherited active" title="Show inherited elements">Inherited</button>
    </div>

        <ul class="side-nav nav nav-list">
        <li class="nav-header">
            <i class="icon-custom icon-method"></i> Methods
            <ul>
                                                                                                                                                                                                                    <li class="method public">
        <a href="#method_getInstance" title="getInstance :: 单例模式：获取本类的实例化对象">
            <span class="description">单例模式：获取本类的实例化对象</span><pre>getInstance</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_substr" title="substr :: 字符单字节截串，为了优化页面展示，一个汉字按两个字符计算，如果第三个参数小于0，则默认是字符长度">
            <span class="description">字符单字节截串，为了优化页面展示，一个汉字按两个字符计算，如果第三个参数小于0，则默认是字符长度</span><pre>substr</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_strlen" title="strlen :: 根据字符的ASCII编码计算字符串的长度，一个汉字按两个字符计算">
            <span class="description">根据字符的ASCII编码计算字符串的长度，一个汉字按两个字符计算</span><pre>strlen</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_charlen" title="charlen :: 根据字符的ASCII编码计算字符的长度，一个汉字按两个字符计算">
            <span class="description">根据字符的ASCII编码计算字符的长度，一个汉字按两个字符计算</span><pre>charlen</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getCharset" title="getCharset :: 获取当前项目的编码">
            <span class="description">获取当前项目的编码</span><pre>getCharset</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_isGbk" title="isGbk :: 判断当前项目的编码是否是GBK格式">
            <span class="description">判断当前项目的编码是否是GBK格式</span><pre>isGbk</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_isUtf8" title="isUtf8 :: 判断当前项目的编码是否是UTF8格式">
            <span class="description">判断当前项目的编码是否是UTF8格式</span><pre>isUtf8</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_convert" title="convert :: 转换字符串或字符串数组的编码
优先采用mb_convert_encoding函数，如果mb_convert_encoding函数不存在，采用iconv函数">
            <span class="description">转换字符串或字符串数组的编码
优先采用mb_convert_encoding函数，如果mb_convert_encoding函数不存在，采用iconv函数</span><pre>convert</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_mb_convert_encoding" title="mb_convert_encoding :: mb_convert_encoding方式转换字符串或字符串数组的编码">
            <span class="description">mb_convert_encoding方式转换字符串或字符串数组的编码</span><pre>mb_convert_encoding</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_iconv" title="iconv :: iconv方式转换字符串或字符串数组的编码">
            <span class="description">iconv方式转换字符串或字符串数组的编码</span><pre>iconv</pre>
        </a>
    </li>

                                                </ul>
        </li>
        <li class="nav-header protected">» Protected
            <ul>
                                                                            <li class="method protected">
                            <a href="#method___construct" title="__construct :: 构造方法：初始化本项目的编码方式，计算字符长度时，以此编码为准；转换字符时，此编码是默认转出编码">
                                <span class="description">构造方法：初始化本项目的编码方式，计算字符长度时，以此编码为准；转换字符时，此编码是默认转出编码</span><pre>__construct</pre>
                            </a>
                        </li>
                                                                                                                                                                                                                                                                                                                                                                                                                                                            </ul>
        </li>
        <li class="nav-header private">» Private
            <ul>
                                                                                                                <li class="method private">
                            <a href="#method___clone" title="__clone :: 魔术方法：禁止被克隆">
                                <span class="description">魔术方法：禁止被克隆</span><pre>__clone</pre>
                            </a>
                        </li>
                                                                                                                                                                                                                                                                                                                                                                                                                        </ul>
        </li>
        <li class="nav-header">
            <i class="icon-custom icon-constant"></i> Constants
            <ul>
                                <li class="constant ">
                    <a href="#constant_CHARSET_UTF8" title="CHARSET_UTF8 :: ">
                        <span class="description"></span><pre>CHARSET_UTF8</pre>
                    </a>
                </li>
                                <li class="constant ">
                    <a href="#constant_CHARSET_GBK" title="CHARSET_GBK :: ">
                        <span class="description"></span><pre>CHARSET_GBK</pre>
                    </a>
                </li>
                            </ul>
        </li>
    </ul>


        </div>

        <div class="span8">
            <div class="element class">
                <h1>Encoder</h1>
                <small style="display: block; text-align: right">
                                                        </small>
                <p class="short_description">Encoder class file
字符编码处理类，只处理GBK或UTF-8编码</p>
                <div class="details">
                    <div class="long_description">
                        
                    </div>
                    <table class="table table-bordered">
                                                                                    <tr>
                                    <th>
                                        author
                                                                            </th>
                                    <td>
                                                                                    
                                                                                <p>宋欢 <a href="mailto:trotri@yeah.net">trotri@yeah.net</a></p>
                                    </td>
                                </tr>
                                                                                                                <tr>
                                    <th>
                                        version
                                                                            </th>
                                    <td>
                                                                                    
                                                                                <p>$Id: Encoder.php 1 2013-03-29 16:48:06Z huan.song $</p>
                                    </td>
                                </tr>
                                                                                                                <tr>
                                    <th>
                                        package
                                                                            </th>
                                    <td>
                                                                                    
                                                                                <p>tfc.util</p>
                                    </td>
                                </tr>
                                                                                                                <tr>
                                    <th>
                                        since
                                                                            </th>
                                    <td>
                                                                                    1.0
                                                                                
                                    </td>
                                </tr>
                                                                                                                                                                                                                                    </table>

                    <h3><i class="icon-custom icon-method"></i> Methods</h3>
                                                                <a id="method___construct"></a>
                        <div class="element clickable method protected  method___construct" data-toggle="collapse" data-target=".method___construct .collapse">
                            <h2>构造方法：初始化本项目的编码方式，计算字符长度时，以此编码为准；转换字符时，此编码是默认转出编码</h2>
                            <pre>__construct(string $charset) </pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    throws
                                                </th>
                                                <td>
                                                                                                                                                                        
                                                                                                                                                                        <p>如果指定的编码不是UTF8或GBK，抛出异常</p>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$charset</h4>
                                                <code>string</code><p><p>'UTF-8' or 'GBK'</p></p>
                                            </div>
                                                                            
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method___clone"></a>
                        <div class="element clickable method private  method___clone" data-toggle="collapse" data-target=".method___clone .collapse">
                            <h2>魔术方法：禁止被克隆</h2>
                            <pre>__clone() </pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getInstance"></a>
                        <div class="element clickable method public  method_getInstance" data-toggle="collapse" data-target=".method_getInstance .collapse">
                            <h2>单例模式：获取本类的实例化对象</h2>
                            <pre>getInstance(string $charset = null) : \tfc\util\Encoder</pre>
                            <div class="labels">
                                                                <span class="label">static</span>                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$charset</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code><a href="../classes/tfc.util.Encoder.html">\tfc\util\Encoder</a></code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_substr"></a>
                        <div class="element clickable method public  method_substr" data-toggle="collapse" data-target=".method_substr .collapse">
                            <h2>字符单字节截串，为了优化页面展示，一个汉字按两个字符计算，如果第三个参数小于0，则默认是字符长度</h2>
                            <pre>substr(string $input, integer $start, integer $length = -1) : string</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$input</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$start</h4>
                                                <code>integer</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$length</h4>
                                                <code>integer</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_strlen"></a>
                        <div class="element clickable method public  method_strlen" data-toggle="collapse" data-target=".method_strlen .collapse">
                            <h2>根据字符的ASCII编码计算字符串的长度，一个汉字按两个字符计算</h2>
                            <pre>strlen(string $param) : integer</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$param</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>integer</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_charlen"></a>
                        <div class="element clickable method public  method_charlen" data-toggle="collapse" data-target=".method_charlen .collapse">
                            <h2>根据字符的ASCII编码计算字符的长度，一个汉字按两个字符计算</h2>
                            <pre>charlen(\tfc\util\char $param) : integer</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$param</h4>
                                                <code>\tfc\util\char</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>integer</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getCharset"></a>
                        <div class="element clickable method public  method_getCharset" data-toggle="collapse" data-target=".method_getCharset .collapse">
                            <h2>获取当前项目的编码</h2>
                            <pre>getCharset() : string</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_isGbk"></a>
                        <div class="element clickable method public  method_isGbk" data-toggle="collapse" data-target=".method_isGbk .collapse">
                            <h2>判断当前项目的编码是否是GBK格式</h2>
                            <pre>isGbk() : boolean</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>boolean</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_isUtf8"></a>
                        <div class="element clickable method public  method_isUtf8" data-toggle="collapse" data-target=".method_isUtf8 .collapse">
                            <h2>判断当前项目的编码是否是UTF8格式</h2>
                            <pre>isUtf8() : boolean</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>boolean</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_convert"></a>
                        <div class="element clickable method public  method_convert" data-toggle="collapse" data-target=".method_convert .collapse">
                            <h2>转换字符串或字符串数组的编码
优先采用mb_convert_encoding函数，如果mb_convert_encoding函数不存在，采用iconv函数</h2>
                            <pre>convert(mixed $param, string $inCharset = &#039;GBK&#039;, string $outCharset = null) : mixed</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    throws
                                                </th>
                                                <td>
                                                                                                                                                                        
                                                                                                                                                                        <p>如果mb_convert_encoding或者iconv函数不存在，抛出异常</p>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$param</h4>
                                                <code>mixed</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$inCharset</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$outCharset</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>mixed</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_mb_convert_encoding"></a>
                        <div class="element clickable method public  method_mb_convert_encoding" data-toggle="collapse" data-target=".method_mb_convert_encoding .collapse">
                            <h2>mb_convert_encoding方式转换字符串或字符串数组的编码</h2>
                            <pre>mb_convert_encoding(mixed $param, string $inCharset = &#039;GBK&#039;, string $outCharset = null) : mixed</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$param</h4>
                                                <code>mixed</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$inCharset</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$outCharset</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>mixed</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_iconv"></a>
                        <div class="element clickable method public  method_iconv" data-toggle="collapse" data-target=".method_iconv .collapse">
                            <h2>iconv方式转换字符串或字符串数组的编码</h2>
                            <pre>iconv(mixed $param, string $inCharset = &#039;GBK&#039;, string $outCharset = null) : mixed</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$param</h4>
                                                <code>mixed</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$inCharset</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$outCharset</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>mixed</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                    
                                            <h3><i class="icon-custom icon-constant"></i> Constants</h3>
                                                    <a id="constant_CHARSET_UTF8"> </a>
                            <div class="element clickable constant  constant_CHARSET_UTF8" data-toggle="collapse" data-target=".constant_CHARSET_UTF8 .collapse">
                                <h2>CHARSET_UTF8</h2>
                                <pre>CHARSET_UTF8</pre>
                                <div class="labels">
                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>
                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>UTF-8编码</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>
                                    </div>
                                </div>
                            </div>
                                                    <a id="constant_CHARSET_GBK"> </a>
                            <div class="element clickable constant  constant_CHARSET_GBK" data-toggle="collapse" data-target=".constant_CHARSET_GBK .collapse">
                                <h2>CHARSET_GBK</h2>
                                <pre>CHARSET_GBK</pre>
                                <div class="labels">
                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>
                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>GBK编码</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>
                                    </div>
                                </div>
                            </div>
                                            
                                                                <h3><i class="icon-custom icon-property"></i> Properties</h3>
                                                    <a id="property__charset"> </a>
                            <div class="element clickable property  protected property__charset" data-toggle="collapse" data-target=".property__charset .collapse">
                                <h2>当前项目的编码方式</h2>
                                <pre>_charset : string</pre>
                                <div class="labels">
                                                                                                        </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>

                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>当前项目的编码方式</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>

                                                                                    <h3>Type(s)</h3>
                                            <code>string</code>
                                                                            </div>
                                </div>
                            </div>
                                                    <a id="property__instances"> </a>
                            <div class="element clickable property  protected property__instances" data-toggle="collapse" data-target=".property__instances .collapse">
                                <h2>of tfc\util\Encoder</h2>
                                <pre>_instances : \tfc\util\instances</pre>
                                <div class="labels">
                                                                        <span class="label">static</span>                                </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>

                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>of tfc\util\Encoder</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>

                                                                                    <h3>Type(s)</h3>
                                            <code>\tfc\util\instances</code>
                                                                            </div>
                                </div>
                            </div>
                                                            </div>
            </div>
            <a id="\tfc\util\Encoder"></a>
            <ul class="breadcrumb">
                <li><a href="../index.html"><i class="icon-custom icon-class"></i></a></li>
                    
    
    <li><span class="divider">\</span><a href="../namespaces/tfc.util.html">util</a></li>

                <li class="active"><span class="divider">\</span><a href="../classes/tfc.util.Encoder.html">Encoder</a></li>
            </ul>
        </div>
    </div>

    </div>

        <footer class="span12">
            Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by
            <a href="http://glyphicons.com/">Glyphicons</a>.<br/>
            Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor </a> and<br/>
            generated on Sat, 27 Dec 2014 06:16:38 +0000.<br/>
    </footer>
    </body>
</html>
